<template>
  <div id="app">
    <keep-alive :include="/^Nc/">
      <router-view/>
    </keep-alive>
    <van-tabbar active-color="#ff6400" inactive-color="#000" route v-if="$route.name == 'Main' || $route.name == 'My'">
      <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/My" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  font-size: 14px;
}

#app * {
  box-sizing: border-box;
}
/*隐藏nprogress的loading效果*/
#nprogress .spinner{
  display: none;
}
</style>
